<tr>
    <th valign="top">Username:</th>
    <td>
        <?php
            echo $this->Form->input('username', array(
                                'label'     => false,
                                'div'       => false,
                                'class'     => 'inp-form med')
                );     
        ?>      
    </td>
    <td></td> 
</tr>
<tr>
    <th valign="top">Email:</th>
    <td>
        <?php
            echo $this->Form->input('email', array(
                                'label'     => false,
                                'div'       => false,
                                'class'     => 'inp-form med')
                );     
        ?>      
    </td>
    <td></td> 
</tr>
<?php
if(!isset($this->data['User']['id'])){ ?>
<tr>
    <th valign="top">Password:</th>
    <td>
        <?php
            echo $this->Form->input('password', array(
                                'label'     => false,
                                'div'       => false,
                                'value'     =>'',
                                'class'     => 'inp-form med')
                );     
        ?>      
    </td>
    <td></td> 
</tr>
<tr>
    <th valign="top">Confirm Password:</th>
    <td>
        <?php
            echo $this->Form->input('confirmPassword', array(
                                'label'     => false,
                                'div'       => false,
                                'type'      =>'password',
                                'class'     => 'inp-form med')
                );     
        ?>      
    </td>
    <td></td> 
</tr>
<?php }
?>
<tr>
    <td colspan="3" id="user_role">        
        <table cellpadding="0" cellspacing="0" >
            <tr>
                <th valign="top">Group:</th>
                <td>
                    <?php
                        echo $this->Form->input('group_id', array(
                                            'label'     => false,
                                            'div'       => false,
                                            'empty'     =>'',
                                            'place-holder'=>'Select a group',
                                            'options'   =>$groups,
                                            'class'     => 'chosen med')
                            );     
                    ?>      
                </td>
                <td></td> 
            </tr>
        </table>
    </td>
</tr>

<tr>
    <th valign="top">Active:</th>
    <td>	
        <?php
            echo $this->Form->checkbox('status', 
                                array('1' => 'Active', '0' => 'Inactive'),
                                array("legend" => false,
                                      'value'  => isset($this->data[$sN]['status'])&&($this->data[$sN]['status'] != '') ? $this->data[$sN]['status'] : 1,
                                )
                       );
        ?>
    </td>
    <td></td>
</tr> 